package com.ztjy.bean;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * custom
 * @author 
 */
@Data
public class Custom implements Serializable {
    /**
     * 客户id(主键)
     */
    private Integer customid;

    /**
     * 客户名称
     */
    private String customname;

    /**
     * 性别(2男/1女)
     */
    private Integer sex;

    /**
     * 联系电话
     */
    private String telephone;

    /**
     * 所属公司
     */
    private String company;

    /**
     * 所属区域(省和市) 市id外键
     */
    private Integer address;

    /**
     * 状态(1可用/2不可用)
     */
    private Integer status;

    private Integer customPid;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    /**
     * 创建人id(外键user)
     */
    private Integer createid;

    /**
     * 分配时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date distractime;

    /**
     * 客服人员id（外键）
     */
    private Integer serviceid;

    /**
     * 描述
     */
    private String distract;

    /**
     * 家庭住址
     */
    private String homeaddress;

    //---------------外键-----------------
    private Integer allot;//是否分配
    /**
     * 市对象（City）
     */
    private City city;

    /**
     * 创建人对象（Users）
     */
    private Users createUser;

    /**
     * 客服对象（Users）
     */
    private Users serviceUser;

    private static final long serialVersionUID = 1L;
    public Integer getCustomid() {
        return customid;
    }

    public void setCustomid(Integer customid) {
        this.customid = customid;
    }

    public String getCustomname() {
        return customname;
    }

    public void setCustomname(String customname) {
        this.customname = customname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public Integer getAddress() {
        return address;
    }

    public void setAddress(Integer address) {
        this.address = address;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCustomPid() {
        return customPid;
    }

    public void setCustomPid(Integer customPid) {
        this.customPid = customPid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getCreateid() {
        return createid;
    }

    public void setCreateid(Integer createid) {
        this.createid = createid;
    }

    public Date getDistractime() {
        return distractime;
    }

    public void setDistractime(Date distractime) {
        this.distractime = distractime;
    }

    public Integer getServiceid() {
        return serviceid;
    }

    public void setServiceid(Integer serviceid) {
        this.serviceid = serviceid;
    }

    public String getDistract() {
        return distract;
    }

    public void setDistract(String distract) {
        this.distract = distract;
    }

    public String getHomeaddress() {
        return homeaddress;
    }

    public void setHomeaddress(String homeaddress) {
        this.homeaddress = homeaddress;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public Users getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Users createUser) {
        this.createUser = createUser;
    }

    public Users getServiceUser() {
        return serviceUser;
    }

    public void setServiceUser(Users serviceUser) {
        this.serviceUser = serviceUser;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}
